// 类与接口
export {}

interface EatAndRun {
    eat(food: string):void
    run(distance: number):void
}

class Person implements EatAndRun {
    eat(food: string):void{
        console.log(`优雅的进餐：${food}`)
    }
    run(distance: number):void{
        console.log(`直立行走${distance}`)
    }
}

class Animal implements EatAndRun {
    eat(food: string):void{
        console.log(`呼噜噜的吃${food}`)
    }
    run(distance: number):void{
        console.log(`爬行${distance}`)
    }
}